package com.edevp.common.core.util.json;


import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;

/**
 * ${DESCRIPTION}
 *
 * @author Blueeyedboy
 * @create 2019-12-16 3:38 PM
 **/
public class JsonUtil {
	public static String toJson(Object o){
		return JSON.toJSONString(o);
	}

	public static JSONObject parse(String s){
		return JSON.parseObject(s);
	}
	public static <T> T parse(String s, Class<T> clazz){
		return JSON.parseObject(s,clazz);
	}
}
